package com.study.service.impl;

import com.study.entity.Role;
import com.study.mapper.RoleMapper;
import com.study.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:zt
 * @createDate: 2022/6/18
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> selects() {
        return roleMapper.selects();
    }

    @Override
    public int deleteByPrimaryKey(Integer roleId) {
        return roleMapper.deleteByPrimaryKey(roleId);
    }

    @Override
    public int insert(Role row) {
        return 0;
    }

    @Override
    public int insertSelective(Role row) {
        return roleMapper.insertSelective(row);
    }

    @Override
    public Role selectByPrimaryKey(Integer roleId) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Role row) {
        return roleMapper.updateByPrimaryKeySelective(row);
    }

    @Override
    public int updateByPrimaryKey(Role row) {
        return 0;
    }
}
